
#ifndef HDF_GPIO_KEY_H
#define HDF_GPIO_KEY_H

#include "common_include.h"
#include "gpio_if.h"
#include "key_config.h"

struct KeyOps;
typedef struct {
    struct HdfDeviceObject *hdfDevObj;
    void *driver;    //no use
    struct KeyOps *ops;
    KeyConfig *keyConfig;
} KeyDevice;

struct KeyOps {
    int32_t (*Init)(KeyDevice *device);
    int32_t (*DataHandle)(KeyDevice *device);
    void (*SetAbility)(KeyDevice *device);
};

#endif